package cn.doitedu.javase.io;

import java.io.FileInputStream;

public class _04_FileInputStream_循环读取 {

    public static void main(String[] args) throws Exception {

        FileInputStream fileInputStream = new FileInputStream("e:/b.txt");

        byte[] b = new byte[1024];

        int read = 0;
        while(  (read = fileInputStream.read(b))  != -1      ) {
            System.out.print(new String(b,0,read));
        }

        fileInputStream.close();
    }

}
